package com.example.cloud.model.business.attendance;

import com.example.cloud.model.common.CommonModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.util.Date;

/**
 * Created by wangtao on 2018/5/23.
 */
@Entity(name = "main_class_schedule")
@Data
@EqualsAndHashCode(callSuper = false)
public class MainClassSchedule extends CommonModel {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    // 排班日期
    @Column(name = "duty_date")
    private Date dutyDate;
    // 主班用户
    @Column(name = "user_id")
    private Long userId;
    @Column(name = "user_name")
    private String userName;
    // 账户编号
    @Column(name = "account_id")
    private Long accountId;
    // 组织机构编号
    @Column(name = "organ_id")
    private Long organId;
    // 组织机构名称
    @Column(name = "organ_name")
    private String organName;
}
